// #ifndef VUE3
import Vue from 'vue'
import App from './App'
// 注册全局的工具类函数
import * as tools from 'utils/index.js'
Object.keys(tools).forEach(key => {
  uni[`$${key}`] = tools[key]
})
// 注册全局过滤器
import * as filters from 'filters/index.js'
Object.keys(filters).forEach(key=>{
  Vue.filter(key,filters[key])
})
Vue.config.productionTip = false

App.mpType = 'app'
// 1. 导入 store 的实例对象
import store from './store/index.js'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
  createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif